package varton;

/**
 * 促销方式A-满100 减20
 */
public class SalesCaseA implements IPrice{

    @Override
    public double actuallyAmount(double price, int num) {
        if(price*num >= 100){
            return price*num - 20;
        }
        return price*num;
    }
}
